package com.seecen.letao.controller;

import com.seecen.letao.pojo.User;
import com.seecen.letao.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class UserController {

    @Resource
    private UserService userService;

    @ResponseBody
    @GetMapping("/ces")
    public List<User> selectAll(){
        return userService.selectAll();
    }
}
